import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取数值范围的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getNumberRangeProps<C>() {
  return { ...getEditorProps<C>(), value: [String, Number] };
}

/**
 * 获取表格数值范围的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridNumberRangeProps<C>() {
  return { ...getNumberRangeProps<C>(), ...getGridEditorCommonProps() };
}
